package com.zzyl.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {
    @Select("select ur.user_id from sys_role r left join sys_user_role ur on r.id = ur.role_id where r.role_name = #{roleName}")
    List<Long> selectUserIdByRoleName(String roleName);
}
